from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from . import views

router = DefaultRouter()
router.register(r'areas', views.AreaViewSet, basename='areas')

urlpatterns = [
    # url(r'^areas/$', views.AreasAPIView.as_view()),
    # url(r'^areas/(?P<pk>\d+)/$', views.AreasViewSet_sons.as_view()),
]

urlpatterns += router.urls